package com.sky.mapper;

import com.sky.annotation.Autofill;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import com.sky.vo.DishItemVO;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealMapper {
    @Autofill(value = OperationType.INSERT)
    void insert(Setmeal setmeal);

    List<SetmealVO> getPage(SetmealPageQueryDTO setmealPageQueryDTO);

    SetmealVO getById(Long id);

    @Autofill(value = OperationType.UPDATE)
    void update(Setmeal setmeal);

    void delet(Long id);

    List<Setmeal> list(Setmeal setmeal);

    List<DishItemVO> getDishItemBySetmealId(Long id);

    int getByStatus(Integer status);
}
